package com.myidis.entity;

import java.util.ArrayList;
import java.util.List;

public class CIResult {
	private String subject;
	private List<String> dates;
	private int count;
	private int springDay;
	private List<Double> benchmarks;

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		subject = subject;
	}

	public List<String> getDates() {
		return dates;
	}

	public void setDates(List<String> dates) {
		this.dates = dates;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getSpringDay() {
		return springDay;
	}

	public void setSpringDay(int springDay) {
		this.springDay = springDay;
	}

	public List<Double> getBenchmarks() {
		return benchmarks;
	}

	public void setBenchmarks(List<Double> benchmarks) {
		this.benchmarks = benchmarks;
	}

	/// <summary>
	/// 先行指数
	/// </summary>
	public ArrayList<Double> leadIndex;
	/// <summary>
	/// 一致指数
	/// </summary>
	public ArrayList<Double> coinIndex;
	/// <summary>
	/// 滞后指数
	/// </summary>
	public ArrayList<Double> lagIndex;

	/// <summary>
	/// 构造函数
	/// </summary>
	public CIResult(){
		leadIndex = new ArrayList<Double>();
		coinIndex = new ArrayList<Double>();
		lagIndex = new ArrayList<Double>();
     }

	public CIResult(String subject, List<String> dates, CIResult ci, int springDay, ArrayList<Double> benchmarks) {
		this.subject = subject;
		this.dates = dates;
		this.count = dates.size();
		this.springDay = springDay;
		this.benchmarks = benchmarks;
		this.leadIndex = ci.leadIndex;
		this.coinIndex = ci.coinIndex;
		this.lagIndex = ci.lagIndex;
	}


}
